﻿//-----------------------------------------------------------------------
// <copyright file="decimalupdownfielddefinition.cs" company="Jamie Knight">
// Copyright (c) Jamie Knight. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System.Windows;
using Xceed.Wpf.Toolkit;
using Xceed.Wpf.Toolkit.Primitives;

namespace DevKnightlie.WPF.AutoForm.WPFToolkit.FieldDefinitions
{
    /// <summary>
    /// Field definition which creates a DecimalUpDown control
    /// </summary>
    public class DecimalUpDownFieldDefinition:BaseUpDownFieldDefinition<decimal?>
    {
        #region Methods

        protected override UpDownBase<decimal?> CreateInputControl()
        {
            DecimalUpDown textBox = new DecimalUpDown()
            {
                HorizontalContentAlignment = HorizontalAlignment.Left,
                VerticalContentAlignment = VerticalAlignment.Center
            };
            return textBox;
        }

        #endregion
    }
}
